﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="MooNet.Api.Lib.Models" %>
<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content">
        <h1>
            Events</h1>
        <% foreach (EventModel eventModel in ((EventsModel)ViewData["Events"]).Events)
           {%>
        <p>
            <a href="<%= eventModel.Tickets.Tickets[0].Url %>">
                <%= eventModel.Name %></a></p>
        <%
            }%>
    </div>
    <div id="footer">
        <p>
            &copy;2009 Copyright MooNet Group. All Rights Reserved.</p>
    </div>
</asp:Content>
